package com.open.capacity.service.impl;

import com.open.capacity.dao.ActivityDao;
import com.open.capacity.model.ActivityModel;
import com.open.capacity.model.UserModel;
import com.open.capacity.service.ActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: y_022
 * @date: 19:32-2021/6/24
 * @description:
 */
@Service
public class ActivityServiceImpl  implements ActivityService {
    @Autowired
    private ActivityDao activityDao;
    @Override
    public List<ActivityModel> findActivityByUserId(UserModel userModel) {
        List<ActivityModel> activityByUserId = activityDao.findActivityByUserId(userModel);
        return activityByUserId;
    }
}
